<?php
header("Content-type: application/json");
header("Access-Control-Allow-Credentials: true");
header("Access-Control-Allow-Origin: *");
header("Access-Control-Request-Methods:GET, POST, PUT, DELETE, OPTIONS");
header('Access-Control-Allow-Headers:x-requested-with,content-type,test-token,test-sessid');

chdir(dirname(__FILE__));

// include_once './_config.php';
include_once './_logfile.php';
include_once './_database.php';
// include_once './_params.php';
include_once './_functions.php';
// include_once './_envs.php';
// include_once '_logdb.php';

$input_content = file_get_contents('php://input');
$post = json_decode($input_content);
